﻿using System;
using System.ServiceModel.Web;
using org.ids_adi.iring.adapter;

namespace org.ids_adi.iring.adaptereSub
{
    public partial class AdapterService
    {
        private AdapterServiceProvider _adapterServiceProvider = null;


        /// <summary>
        /// Adapter Service Constructor
        /// </summary>
        public AdapterService()
        {          
         _adapterServiceProvider = new AdapterServiceProvider();           
        }

        /// <summary>
        /// Gets the mapping by reading Mapping.xml.
        /// </summary>
        /// <returns>Returns mapping object.</returns>
        [WebGet(UriTemplate = "/mapping")]
        public Mapping GetMapping()
        {
          return _adapterServiceProvider.GetMapping();
        }
    }
}


